package com.mrjy.maintain.bo;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.mrjy.common.entity.DistributorTeamInfo;
import com.mrjy.common.entity.ServiceStationInfo;
import com.mrjy.maintain.dto.ServiceStationParamDTO;

public interface IServiceStationInfoBo {

	//查询所有
	public List<ServiceStationInfo> serviceStationAllList();
	
	//分页查询服务站
	public Object queryPageServiceStationInfo(ServiceStationInfo serviceStationInfo, HttpSession session);
	
	//根据地址查询服务站列表
	Object queryServiceStationListNoPage(ServiceStationInfo serviceStationInfo);
	
	public String serviceStationValidate(ServiceStationInfo serviceStationInfo,String stid);
	
	//添加服务站
	public Object txInsert(ServiceStationInfo serviceStationInfo, HttpSession session);
	
	//根据id查询
	public ServiceStationInfo queryById(int id);
	
	//根据id更新
	public Object txUpdateById(ServiceStationInfo serviceStationInfo, HttpSession session);
	
	//根据id删除服务站
	public int deleteByIds(int[] ids);
	
	//根据id禁用、启用服务站
	public Object txUpdateDisableFlag(ServiceStationInfo serviceStationInfo, HttpSession session);

	public Map<String, Object> txCheckStationInfoStatusExpired();
	
	//导出excel
	public Object exportExl(ServiceStationInfo serviceStationInfo, HttpServletResponse response, HttpSession session);
	
	//根据服务站id查询其团队成员
	public List<DistributorTeamInfo> queryTeamByStationId(ServiceStationInfo serviceStationInfo);
	
	//查询服务站总记录数
	public Object getTotal(ServiceStationInfo serviceStationInfo);

	public Object checkMobilePhoneExist(ServiceStationInfo serviceStationInfo);

	public Object queryStationPage(ServiceStationParamDTO dto);

	public Object txAddCallingNumById(Integer id,Integer userId);
	
	
}
